package com.md.youyouhui.net.repo;

import android.arch.lifecycle.LiveData;

import com.md.youyouhui.common.Resource;
import com.md.youyouhui.net.ApiServiceFac;
import com.md.youyouhui.net.response.GetLimitSellResponse;
import com.md.youyouhui.utils.calladapter.ResourceConvertUtils;

import java.util.List;

/**
 * Created by AdministratorZJ
 * on 2018/5/25.
 */

public class GetLimitSellRepo {
    private static GetLimitSellRepo INSTANCE;

    public static GetLimitSellRepo newInstance() {
        if (null == INSTANCE) {
            INSTANCE = new GetLimitSellRepo();
        }
        return INSTANCE;
    }


    public LiveData<Resource<List<GetLimitSellResponse>>> getShoppingLimitSell() {

        return ResourceConvertUtils.convertResource(ApiServiceFac.get().getShoppingLimitSell());
    }


}
